﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;
using Module;

namespace BLL
{
    public class BUserTag
    {
        #region 字段

        private DUserTag APP = new DUserTag();//数据操作对象
        private static BUserTag instance;

        #endregion

        #region 公共接口
        /// <summary>
        /// 取得
        /// </summary>
        /// <returns>BUserTag对象</returns>
        public static BUserTag getInstance()
        {
            if (instance == null)
            {
                instance = new BUserTag();
            }
            return instance;
        }

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="userTagInfo"></param>
        /// <returns></returns>
        public bool Insert(UserTagInfo userTagInfo)
        {
            if (userTagInfo == null || userTagInfo.UserTagId == 0)
                return false;
            return APP.Insert(userTagInfo);

        }
        /// <summary>
        /// 获取所有标签
        /// </summary>
        /// <returns></returns>
        public List<UserTagInfo> GetAllTagInfo()
        {
            return APP.GetAllTagInfo();
        }
        #endregion
    }
}
